package cn.com.connext.scrm.domain.master;

import com.connext.common.domain.UUIDDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * Created by yuanyajun on 2018/7/23.
 */
@Entity
@Table(name = "banner_list")
public class BannerList implements UUIDDomain, Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name = "name",nullable = false)
    private String name;

    @Column(name = "order_number",nullable = false)
    private Integer orderNumber;

    @Column(name = "img_url",nullable = false)
    private String imgUrl;

    @Column(name = "redirect_type")
    private String redirectType;

    @Column(name = "redirect_h5_url")
    private String redirectH5Url;

    @Column(name = "mini_progran_appid")
    private String miniProgranAppid;

    @Column(name = "mini_progran_path")
    private String miniProgranPath;

    @Column(name="status",nullable = false)
    private Integer status;

    @Column(name="type")
    private Integer type;//0-首页轮播图   1-附近酒吧轮播图

    @Column(name="delete_flag",nullable = false)
    private Boolean deleteFlag;

    @Column(name = "create_time")
    private ZonedDateTime createTime;

    @Column(name = "update_time")
    private ZonedDateTime updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Integer orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getRedirectType() {
        return redirectType;
    }

    public void setRedirectType(String redirectType) {
        this.redirectType = redirectType;
    }

    public String getRedirectH5Url() {
        return redirectH5Url;
    }

    public void setRedirectH5Url(String redirectH5Url) {
        this.redirectH5Url = redirectH5Url;
    }

    public String getMiniProgranAppid() {
        return miniProgranAppid;
    }

    public void setMiniProgranAppid(String miniProgranAppid) {
        this.miniProgranAppid = miniProgranAppid;
    }

    public String getMiniProgranPath() {
        return miniProgranPath;
    }

    public void setMiniProgranPath(String miniProgranPath) {
        this.miniProgranPath = miniProgranPath;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Boolean getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public ZonedDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(ZonedDateTime createTime) {
        this.createTime = createTime;
    }

    public ZonedDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(ZonedDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
